﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="add_step.aspx.cs" Inherits="AutoFix.add_step" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="AdditionalPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MessagePlaceHolder" runat="server">
    Add steps to the article. Plan which steps comes first and which goes next. <br />If you add the last step as the first step there is no way you can make it as the first step, unless you delete the existing article and create new article again.
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="pageActionMessage" runat="server"></div>
    <div class="column-section">
           <div class="section-break">              
        <div class="clear"></div>
        <div class="column-section">
            <div class="field-name">Step Name:</div>
            <div class="input-field-holder">
                <asp:TextBox ID="txtStepName" runat="server" CssClass="text-box-large" /><br /><asp:RequiredFieldValidator ID="rqdStepName" runat="server" ErrorMessage="Step name is required"  ControlToValidate="txtStepName" CssClass="asterisk" ValidationGroup="AddStepGroup"/>
            </div>
        </div>
        <div class="clear"></div>
        <div class="column-section">
            <div class="field-name">
                <asp:Label ID="lblStepContentTitle" runat="server" Text="" Visible="false" /></div>
            <div class="input-field-holder">
                <asp:FileUpload ID="fleUploadVideo" runat="server" CssClass="text-box-large" Visible="false" /><br />
                <asp:Label ID="lblFormatMessage" runat="server" Text="Only .mp4 is supported file size shoul be less than 20MB" CssClass="text-size-one" Visible="false" /><br /><asp:RequiredFieldValidator ID="rqdVideoFile" runat="server" ErrorMessage="video file is required" ControlToValidate="fleUploadVideo" CssClass="asterisk" Visible="false" ValidationGroup="AddStepGroup"  />
                <asp:TextBox ID="txtContent" runat="server" CssClass="step-text-area" TextMode="MultiLine" Visible="false" /><br /><asp:RequiredFieldValidator ID="rqdStepContent" runat="server" ErrorMessage="Step content is required. Do not enter html tags, please enter plain text" ControlToValidate="txtContent" CssClass="asterisk" Visible="false" ValidationGroup="AddStepGroup" />
            </div>
        </div>
        <div class="clear"></div>
        <div class="button-holder">
            <asp:Button ID="btnSaveStep" runat="server" Text="Save Step" CssClass="button" OnClick="btnSaveStep_Click" ValidationGroup="AddStepGroup" />
            <div class="clear"></div>
        </div>
    </div>
            <br />
        <asp:Button ID="btnPublishArticle" runat="server" Text="Publish Article" CssClass="button" OnClick="btnPublishArticle_Click" /><div class="clear"></div>
    </div>
</asp:Content>
